home *** CD-ROM | disk | FTP | other *** search
Text File | 1992-01-03 | 851 b | 22 lines | [TEXT/MPS ] |
- #-------------------------------------------------------------------------------
- # ShowNPChar
- # MPW Shell Script
- # Written by Godfrey DiGiorgi, 3/30/89
- # rev: 3/19/91 :: for 'l/L' new attribute…
- # rev: 1/3/92 :: to work with any setting of Auto indent and Lock-auto-scrolling
- # Copyright: © 1991 by Apple Computer, Inc., all rights reserved.
- #
- # Function: To be added to menu to toggle display of non-printing characters of active file.
- #-------------------------------------------------------------------------------
-
- # use @1 to extract invisibles setting from Format -x a output
- Set form `Format -x a "{Active}"`
- (Evaluate "{form}" =~ /≈([iI])®1≈/) ∑∑ Dev:Null
- # If invisibles are hidden, show them.
- if "{®1}" == "i"
- Format -a I "{Active}"
- # If invisibles are shown, hide them.
- else
- Format -a i "{Active}"
- end
-